package com.yjq.client.poji.entry;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("coupon_history")
@ApiModel(value="优惠券记录的实体", description="优惠券记录表")
public class CouponHistory {

  @ApiModelProperty(value = "id")
  private Long id;

  @ApiModelProperty(value = "优惠券id")
  private Long couponId;

  @ApiModelProperty(value = "等级名称")
  private Long memberId;

  @ApiModelProperty(value = "优惠券码")
  private String couponCode;

  @ApiModelProperty(value = "获取类型:0->后台赠送;1->主动获取")
  private Integer getType;

  @ApiModelProperty(value = "获取时间")
  private String createTime;

  @ApiModelProperty(value = "使用状态:0->已使用;1->未使用;2->已过期")
  private Integer useStatus;

  @ApiModelProperty(value = "使用时间")
  private String useTime;

  @ApiModelProperty(value = "订单id")
  private Long orderId;

  @ApiModelProperty(value = "订单编号")
  private String orderSn;

}
